package com.ruoyi.keep.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.keep.mapper.TpcEvaluationMapper;
import com.ruoyi.keep.domain.TpcEvaluation;
import com.ruoyi.keep.service.ITpcEvaluationService;

/**
 * 课程评价标签Service业务层处理
 * 
 * @author yipeng
 * @date 2024-08-14
 */
@Service
public class TpcEvaluationServiceImpl implements ITpcEvaluationService 
{
    @Autowired
    private TpcEvaluationMapper tpcEvaluationMapper;

    /**
     * 查询课程评价标签
     * 
     * @param id 课程评价标签主键
     * @return 课程评价标签
     */
    @Override
    public TpcEvaluation selectTpcEvaluationById(Long id)
    {
        return tpcEvaluationMapper.selectTpcEvaluationById(id);
    }

    /**
     * 查询课程评价标签列表
     * 
     * @param tpcEvaluation 课程评价标签
     * @return 课程评价标签
     */
    @Override
    public List<TpcEvaluation> selectTpcEvaluationList(TpcEvaluation tpcEvaluation)
    {
        return tpcEvaluationMapper.selectTpcEvaluationList(tpcEvaluation);
    }

    /**
     * 新增课程评价标签
     * 
     * @param tpcEvaluation 课程评价标签
     * @return 结果
     */
    @Override
    public int insertTpcEvaluation(TpcEvaluation tpcEvaluation)
    {
        return tpcEvaluationMapper.insertTpcEvaluation(tpcEvaluation);
    }

    /**
     * 修改课程评价标签
     * 
     * @param tpcEvaluation 课程评价标签
     * @return 结果
     */
    @Override
    public int updateTpcEvaluation(TpcEvaluation tpcEvaluation)
    {
        return tpcEvaluationMapper.updateTpcEvaluation(tpcEvaluation);
    }

    /**
     * 批量删除课程评价标签
     * 
     * @param ids 需要删除的课程评价标签主键
     * @return 结果
     */
    @Override
    public int deleteTpcEvaluationByIds(Long[] ids)
    {
        return tpcEvaluationMapper.deleteTpcEvaluationByIds(ids);
    }

    /**
     * 删除课程评价标签信息
     * 
     * @param id 课程评价标签主键
     * @return 结果
     */
    @Override
    public int deleteTpcEvaluationById(Long id)
    {
        return tpcEvaluationMapper.deleteTpcEvaluationById(id);
    }
}
